package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Schedule;
import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import com.atguigu.yygh.vo.hosp.ScheduleQueryVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService extends IService<Schedule> {
    void save(Map<String, Object> paramMap);
    //查询排班
    Page<Schedule> findPageSchedule(int page, int limit, ScheduleQueryVo scheduleQueryVo);

    void remove(String hoscode, String hosScheduleId);
    //hoscode和depcode来实现排班信息的查询
    Map<String, Object> getRuleSchedule(Long page, Long limit, String hoscode, String depcode);
    //根据hoscode和depcode workerDate查询
    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate);
     //获取可预约排班数据
    Map<String,Object> getBookingScheduleRule(Integer page, Integer limit, String hoscode, String depcode);
    //根据排班id获取排班数据
    Schedule getById(String scheduleId);
    //根据排班id获取预约下单数据
    ScheduleOrderVo getScheduleOrderVo(String scheduleId);
    //更新排班
    void update(Schedule schedule);
    //获取排班id获取排班数据
    Schedule getScheduleId(String scheduleId);
}
